package com.shigu.mo.bo.requests;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * 提交联动支付
 */
public class LinkageSubmitRequest extends MoRequest{

    @NotEmpty(message = "缺少交易关键信息，请重新下单")
    private String oid;
    @NotEmpty(message = "请输入cvv码")
    @Length(min = 3,max = 3,message = "请输入正确的3位cvv码")
    private String cvv;
    @NotEmpty(message = "请输入有效期")
    @Length(min = 4,max = 4,message = "请输入正确的有效期，格式为月/年（如09/15输入0915）")
    private String date;//用户上交mmyy格式，需要处理成yymm上传给通道
    @NotEmpty(message = "请输入预留手机号")
    private String telephone;//预留手机号
    @NotEmpty(message = "请输入正确的验证码")
    private String verify;

    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    public String getCvv() {
        return cvv;
    }

    public void setCvv(String cvv) {
        this.cvv = cvv;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getVerify() {
        return verify;
    }

    public void setVerify(String verify) {
        this.verify = verify;
    }
}
